namespace Brjnk.CoordinateSystem2D.Layers
{
    using System.Windows;

    /// <summary>
    /// </summary>
    public class GenericPointsDataAdapter : PointsDataAdapter
    {
        private PointsAdapterContext context;

        public override void Initialize(PointsAdapterContext context)
        {
            this.context = context;
        }

        public override void SetData(object data)
        { }

        public void DeletePoint(object key)
        {
            context.DeletePoint(key);
        }

        public void SetPosition(object key, Point position)
        {
            context.SetPosition(key, position);
        }

        public void AddPoint(object key, object data, Point position, object customStyle)
        {
            context.AddPoint(key, data, position, customStyle);
        }
    }
}